package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 宪法表
 * </p>
 *
 * @author stylefeng
 * @since 2018-11-26
 */
@TableName("t_constitution")
public class Constitution extends Model<Constitution> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 宪法名称
     */
    private String name;
    /**
     * 所属分类
     */
    private String category;
    /**
     * 宪法内容
     */
    private String content;
    /**
     * 状态
     */
    private String status;
    /**
     * 创建时间
     */
   
    private Date createtime;
    /**
     * 顺序
     */
    private Long sort;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    
    public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Constitution{" +
        "id=" + id +
        ", name=" + name +
        ", category=" + category +
        ", content=" + content +
        ", status=" + status +
        ", createTime=" + createtime +
        ", sort=" + sort +
        "}";
    }
}
